package com.tencent.welink.api.account;

import com.tencent.welink.api.base.WelinkOpenApi;
import com.tencent.welink.config.BussinessConfig;
import com.tencent.welink.util.CrontabUtil;
import com.tencent.welink.api.OpenApiTokenChange;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * Created by junchihe on 2020/6/4.
 */
public class GetCurrentUserInfo extends WelinkOpenApi {

    @Override
    public void displayResult(String result) {

    }
    private static final Logger log = LogManager.getLogger(GetCurrentUserInfo.class);
    public GetCurrentUserInfo() {
        super("/common/account/getCurrentUserInfo",true);
    }

    public static void main(String[] args) {
        new BussinessConfig();
        CrontabUtil.addTaskInRate(new OpenApiTokenChange(), BussinessConfig.loginDurationMinutes,true);
        GetCurrentUserInfo getCurrentUserInfo =   new GetCurrentUserInfo();

        // map.put("page",1);
        getCurrentUserInfo.DoHttp();
        CrontabUtil.shutdown();
    }
}
